IDEA:Error rendering Maven report: Unable to find javadoc command:The environment variable JAVA_HOME is not correctly set.

在IDEA中编写maven的pom脚本,执行 mvn install -Dmaven.test.skip=true -X,结果却提示"JAVA_HOME"变量设置不正确,具体提示如下:

Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.0:site (default-site) on ......